<template>
	<view>
		<u-mask :show="show" @click="show = false">
			<view class="warp">
				<view class="rect">
					<view :style="{backgroundImage:'url('+$ftpUrl('/flashpoup.png')+')'}"
						style="width:550rpx;height:700rpx;background-repeat: no-repeat;background-size: contain;text-align: center;color: #fff;">
						<view class="content">
							
							<image :src="list[0].cover" style="width: 200rpx;height: 200rpx;"></image>
							
							
							
							<view class="u-margin-top-20 u-text-left">
								<view class="u-line-2" style="color: #333;">
									{{list[0].goodsName}}
								</view>
								<view class="u-flex u-row-between u-font-xs u-margin-top-20 u-margin-bottom-20">
									<view style="color:#FF5D39;">秒杀价￥{{list[0].price}}</view>
									<view class="u-th-line $u-type-info">￥{{list[0].price}}</view>
								</view>
							</view>
							
							<u-button :custom-style="{background:'#FF5D39',color:'#fff',fontSize:'24rpx'}" shape="circle" @click="go">立即购买</u-button>
						
							
						</view>
					</view>
				</view>
			</view>
		</u-mask>
	</view>
</template>


<script>
	import payway from '@/common/wxpay.js';
	export default {
		props: {
			list: {
				value:Array,
			},

		},
		data() {
			return {
				show: false
			}
		},
		methods: {
			go(){
				uni.navigateTo({
					url:'/else/flash/detail?id='+this.list[0].id
				})
			}
		}
	}
</script>

<style scoped>
	.warp {
		display: flex;
		align-items: center;
		justify-content: center;
		height: 100%;
	}

	.rect {}

	.content {
		
		width: 300rpx;
		position: absolute;
		left: 50%;
		top: 50%;
		transform: translate(-50%, -40%);
		border-radius: 40rpx;
		z-index: 9999;
	}
</style>
